#include "state.h"
#include "work.h"

int main(int argc, char **argv)
{
    //状态迁移到   回家睡觉
    Work::ptr work(new Work(20.0,true));
    work->startWork();
    //加班状态
    work->setState(std::shared_ptr<State>(new MorningState));
    work->setHour(20.0);
    work->setFinished(false);
    work->startWork();
    return 0;
}